package cn.byzk.xframe.web.session.model;


import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
public class SessionUser implements Cloneable {

    public static final String TOKEN_KEY = "bk-token";
    public static final String TOKEN_KEY_2 = "bk-token2";
    public static final String TOKEN_KEY_3 = "bk-token3";

    private String userId;
    private String userNmae;
    private String privName;
    private String clientIp;
    private LocalDateTime lastUpdateTime;
    private Object user;

    //值范围 1,2,3
    private int pos = 1;


    @Override
    public SessionUser clone() {
        SessionUser o = null;
        try {
            o = (SessionUser) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }

        return o;
    }
}
